const loadCss = (cssList = ['init', 'layout', 'boxContent']) => {
    const listSrc = (cssList || []).map((item) => {
        return `./../../style/css/${item}.css`
    });

    const cssLink = listSrc.map((item) => {
        const link = document.createElement('link');
        link.href = item;
        link.rel = 'stylesheet';
        return link;
    });

    cssLink.forEach((link) => {
        document.body.append(link);
    })
};

window.onload = () => {
    loadCss();
}